//
//  RecordViewController.h
//  leo
//
//  Created by 常艳 on 15/10/5.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreAudio/CoreAudioTypes.h>
#define record_tag  @"RecordViewController------------------------"
@interface TaskRecordViewController : UIViewController<AVAudioRecorderDelegate,AVAudioPlayerDelegate,AVAudioSessionDelegate>
@property (weak, nonatomic)  UIWindow *motherWindow;
@property (weak, nonatomic) IBOutlet UILabel *infoLable;
@property (weak, nonatomic) IBOutlet UILabel *timeLable;
@property (weak, nonatomic) IBOutlet UIImageView *actionImg;
@property (nonatomic,assign) BOOL isCancle;
-(int)start;
-(void)stop;
-(NSString *)getRecordSaveUrl;
-(NSString *)getAudioUrl;
-(NSString *)getAmrUrl;
-(NSString *)getAmrSaveUrl;
-(int)getDuration;
@end

